home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / tvmouse.exe / MOUSE.H < prev    next >
C/C++ Source or Header  |  1993-01-03  |  2KB  |  68 lines

  1. /*
  2.  * MOUSE.H
  3.  *
  4.  * PROGRAMMER : Juan M. Alvarado
  5.  *    VERSION : 00.000
  6.  *    CREATED : 01/23/92
  7.  *   MODIFIED : 01/03/93
  8.  *       TABS : 04 08
  9.  *
  10.  * DESCRIPTION
  11.  *
  12.  * HISTORY
  13.  *
  14. */
  15.  
  16. #ifndef MOUSE_H
  17. #define MOUSE_H
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /**************************** C O N S T A N T S ***************************/
  24.  
  25. #define MOUSE_LEFTBUTTON    (1U << 0)
  26. #define MOUSE_RIGHTBUTTON    (1U << 1)
  27. #define MOUSE_FIRSTDOWN        (1U << 2)
  28. #define MOUSE_BEFOREEVENT    (1U << 3)
  29. #define MOUSE_AFTEREVENT    (1U << 4)
  30. #define MOUSE_DOUBLE        (1U << 5)    /* used to indicate double click */
  31.  
  32. /******************************** T Y P E S *******************************/
  33.  
  34.  
  35. typedef struct {
  36.     short X;
  37.     short Y;
  38.     unsigned short Buttons;
  39.     unsigned short OldButtons;
  40. } MouseInfo;
  41.  
  42.  
  43. /****************************** G L O B A L S *****************************/
  44.  
  45.  
  46. /******************************* M A C R O S ******************************/
  47.  
  48.  
  49. /****************** F U N C T I O N   P R O T O T Y P E S *****************/
  50.  
  51. extern short         OpenMouse (void);
  52. extern void         CloseMouse (void);
  53. extern void         ShowMouse (void);
  54. extern void         HideMouse (void);
  55. extern void         ReadMouse (MouseInfo *pmi);
  56. extern void         SetMouseHotSpot (short xhot, short yhot);
  57. extern void         SetMouseResolution (short xres, short yres);
  58. extern void         SetMouseRange (short xmin, short xmax, short ymin, short ymax);
  59. extern void         SetMouseScreenDimensions (short width, short height);
  60. extern void         SetMousePosition (short x, short y);
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66. #endif /* MOUSE_H */
  67.  
  68.